Optimal. Leaf size=46 \[ \frac {x}{2 a}+\frac {i \cos (c+d x)}{2 d (a \cos (c+d x)+i a \sin (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {3082, 8} \[ \frac {x}{2 a}+\frac {i \cos (c+d x)}{2 d (a \cos (c+d x)+i a \sin (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3082
Rubi steps
\begin {align*} \int \frac {\cos (c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx &=\frac {i \cos (c+d x)}{2 d (a \cos (c+d x)+i a \sin (c+d x))}+\frac {\int 1 \, dx}{2 a}\\ &=\frac {x}{2 a}+\frac {i \cos (c+d x)}{2 d (a \cos (c+d x)+i a \sin (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 38, normalized size = 0.83 \[ \frac {2 (c+d x)+\sin (2 (c+d x))+i \cos (2 (c+d x))}{4 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 32, normalized size = 0.70 \[ \frac {{\left (2 \, d x e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{4 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.93, size = 60, normalized size = 1.30 \[ -\frac {\frac {i \, \log \left (\tan \left (d x + c\right ) - i\right )}{a} - \frac {i \, \log \left (-i \, \tan \left (d x + c\right ) + 1\right )}{a} + \frac {-i \, \tan \left (d x + c\right ) - 3}{a {\left (\tan \left (d x + c\right ) - i\right )}}}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 59, normalized size = 1.28 \[ \frac {i \ln \left (\tan \left (d x +c \right )+i\right )}{4 a d}-\frac {i \ln \left (\tan \left (d x +c \right )-i\right )}{4 a d}+\frac {1}{2 a d \left (\tan \left (d x +c \right )-i\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.71, size = 39, normalized size = 0.85 \[ \frac {x}{2\,a}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a\,d\,{\left (1+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.21, size = 61, normalized size = 1.33 \[ \begin {cases} \frac {i e^{- 2 i c} e^{- 2 i d x}}{4 a d} & \text {for}\: 4 a d e^{2 i c} \neq 0 \\x \left (\frac {\left (e^{2 i c} + 1\right ) e^{- 2 i c}}{2 a} - \frac {1}{2 a}\right ) & \text {otherwise} \end {cases} + \frac {x}{2 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________